package com.cuijq.ms.flyweight.v1;

/**
 * @author by CuiJQ
 * @Classname ChessPiece
 * @Description ChessPiece Description
 * @Date 2021/5/26 23:56
 */
public class ChessPiece {

  private int id;
  private String text;
  private Color color;
  private int positionX;
  private int positionY;

  public ChessPiece(int id, String text, Color color, int positionX, int positionY) {
    this.id = id;
    this.text = text;
    this.color = color;
    this.positionX = positionX;
    this.positionY = positionX;
  }

  public static enum Color {RED, BLACK}
}
